package com.yeyixiao.blog.domain;

import java.util.Date;

public class Article {
    private Integer id;
    private String name;
    private Date date;
    private String content;
    public String des;
    private Integer play;
    private  Integer likes;
    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public Integer getPlay() {
        return play;
    }

    public Integer getLikes() {
        return likes;
    }

    public void setLikes(Integer likes) {
        this.likes = likes;
    }

    public Integer getLike() {
        return likes;
    }

    public void setLike(Integer like) {
        this.likes = like;
    }

    public void setPlay(Integer play) {
        this.play = play;
    }
    public void addPlay() {
        this.play = this.play+1;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getName() {
        return name;
    }

    public Date getDate() {
        return date;
    }

    public String getContent() {
        return content;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
}
